<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="entity.tUser"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	tUser tuser = (tUser) session.getAttribute("user");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>人员-水处理系统</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />

		<script src="js/jquery-1.8.2.min.js" type="text/javascript">
</script>
		<script src="js/jquery.carouFredSel-6.0.4-packed.js"
			type="text/javascript">
</script>
		<script type="text/javascript" src="js/check.js">
</script>

	</head>
	<body>
		<div class="main">
			<jsp:include page="conter/header.jsp"></jsp:include>
			<div class="certen">
				<jsp:include page="conter/userLeft.jsp"></jsp:include>
				<div class="content">
					<div class="mainbar">
						<div class="runbutton">
							<h2>
								<span style="letter-spacing: 8px; margin-left: 25px;">人员详细信息</span>
							</h2>
							<div class="clr"></div>
						</div>

						<div class="ifo"
							style="background-image: url(images/menu_line.gif);">
							<div class="userinfo">
								<ul>
									<li>
										用户名：${userName}
									</li>
									<li>
										姓名： ${trueName }
									</li>
									<li>
										邮箱： ${email }
									</li>
									<li>
										手机： ${mobilePhone }
									</li>
									<li>
										电话：${phone }
									</li>
								</ul>
							</div>
							<s:iterator id="tuser" value="#request.tuser">

								<s:if test="#tuser.grade != 2">
									<div class="uaeradd">
										<a href="gettUserIdDetail?userId=${userId }"><img
												src="images/addd.jpg" />
										</a>
									</div>

								</s:if>

							</s:iterator>

						</div>
						<div style="width: 832px; height: auto; clear: both;">
							<form action="#" method="post">
								<table border="0" cellpadding="0" cellspacing="1"
									bgcolor="b5d6e6"
									style="word-break: break-all; word-wrap: break-all;">
									<tr>
										<td colspan="7">
											<img src="images/tb.gif" />
											<span
												style="margin-left: 10px; font-weight: bold; font-size: 18px; color: #595959;">筛选出的设备</span>
										</td>
									</tr>
									<tr class="sb_list_top">
										<td width="10%">
											序列号
										</td>
										<td width="10%">
											设备名称
										</td>
										<td width="12%">
											新建时间
										</td>
										<td width="10%">
											区域
										</td>
										<td width="18%">
											详细地址
										</td>
										<td width="20%">
											描述
										</td>
										<td width="10%">
											基本操作
										</td>
									</tr>
									<s:iterator id="lists" value="#request.lists">
										<tr class="sb_list">
											<td>
												<a href="runDeviceAction?deviceId=${deviceId}">${deviceNo
													}</a>
											</td>
											<td>
												<a href="runDeviceAction?deviceId=${deviceId}">${deviceName
													}</a>
											</td>
											<td>
												${addTime }
											</td>
											<td>
												${deviceArea }
											</td>
											<td>
												${place }
											</td>
											<td>
												${deviceDescribe }
											</td>
											<td>
												<img src="images/sxt.gif" height="16" width="16" />
												视频
												<br />
												<img src="images/edt.gif" height="16" width="16" />
												<s:a
													href="gettDeviceDateToAlter?deviceId=%{#lists.deviceId}&mac=%{#lists.mac}">修改</s:a>
												<br />
												<img src="images/Report.jpg" height="16" width="16" />
												<a
													href="gettDeviceDateToAllot?deviceId=${deviceId}&userId=${userId}">分配</a>

											</td>
										</tr>
									</s:iterator>

								</table>
							</form>

							<div class="clr"></div>
						</div>
						<div class="pagenavi">
							<span class="pages">Page &nbsp;&nbsp;<s:property
									value="pageBean.currentPage" /> &nbsp;&nbsp;of &nbsp;&nbsp;<s:property
									value="pageBean.totalPage" /> </span>

							<s:if test="%{pageBean.currentPage == 1}">
								<span class="current"> 首页 </span>上一页
        </s:if>
							<s:else>
								<span class="current"> <a
									href="gettUserDetail?userId=${userId }&page=1">首页</a>
								</span>
								<a
									href="gettUserDetail?userId=${userId }&page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
							</s:else>
							<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
								<a
									href="gettUserDetail?userId=${userId }&page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
								<a
									href="gettUserDetail?userId=${userId }&page=<s:property value="pageBean.totalPage"/>">尾页</a>
							</s:if>
							<s:else>
           下一页 尾页
        </s:else>

						</div>
					</div>

				</div>
				<div class="clr"></div>
			</div>

		</div>
		<div class="fbg">
			<div class="fbg_resize">
				<jsp:include page="conter/slide.jsp"></jsp:include>
			</div>
		</div>
		<jsp:include page="conter/footer.jsp"></jsp:include>
		</div>
	</body>
</html>